public class Main {
    public static void main(String[] args) {
        System.out.println(sum(10));
    }
    public static int sum(int x){
        if(x == 1){
            return 1;
        }
       return x + sum(x-1);
    }
}